package string;

public class Demo13 {
    public static void main(String[] args) {
        String str = "Thinking in JAVA";

        int index = str.indexOf("JAVA");
        System.out.println(index);

        index = str.indexOf("in");
        System.out.println(index);

        index = str.indexOf('i');
        System.out.println(index);

        index = str.indexOf("java".toUpperCase());
        System.out.println(index);

        index = str.indexOf("java");
        System.out.println(index);
    }
}
